const Mock = require('mockjs')

module.exports = () => {
  const data = Mock.mock({
    'cartList|50': [
      {
        id: '@id()',
        img: '@image(150x150, @color(), @city())',
        count: 0,
        title: '@ctitle()',
        desc: '@cword(30)',
        price: '@integer(1, 100)',
        'type|+1': [1, 0], // 1. 有货 0: 没有货
      },
    ],
  })

  return data
}
